import Axios from "./../utils/axios"
import api from "./../api/index";

//地产登记展示
function registerPage(limit,page,reName){
    return Axios.post(api.landed.registerPage,{limit,page,reName})
}
//地产登记添加
function registerAdd(id,reNumber,reName,reLandArea,reArchitectureArea,reNonbuildingArea, reAddress){
    return Axios.post(api.landed.registerAdd,{id,reNumber,reName,reLandArea,reArchitectureArea,reNonbuildingArea, reAddress})
}
//地产登记删除
function registerDelete(){
    return Axios.delete(api.landed.registerDelete,{ids})
}
//地产登记修改
function registerUpdate(){
    return Axios.post(api.landed.registerUpdate,{id,reNumber,reName,reLandArea,reArchitectureArea,reNonbuildingArea, reAddress})
}

//地产改造展示
function remakePage(limit,page,reName,reReformCause){
    return Axios.post(api.landed.remakePage,{limit,page,reName,reReformCause})
}
//地产改造添加
function remakeAdd(){
    return Axios.post(api.landed.remakeAdd)
}
//地产改造删除
function remakeDelete(){
    return Axios.post(api.landed.remakeDelete)
}
//地产改造更新
function remakeUpdate(){
    return Axios.post(api.landed.remakeUpdate)
}
export default{
    registerPage,
    registerAdd,
    registerDelete,
    registerUpdate,
    remakePage,
    remakeAdd,
    remakeDelete,
    remakeUpdate
}